Mirror

data class Mirror @JvmOverloads constructor(val baseUrl: String, val location: String? = null, val isIpfsGateway: Boolean = false)

Constructors

Link copied to clipboard
constructor(baseUrl: String, location: String? = null, isIpfsGateway: Boolean = false)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val isIpfsGateway: Boolean = false

If this is true, this as an IPFS HTTP gateway that only accepts CIDv1 and not regular paths. So use this mirror only, if you have a CIDv1 available for supplying it to getUrl.

Link copied to clipboard
val location: String? = null
Link copied to clipboard
val url: Url

Functions

Link copied to clipboard
fun getUrl(path: String): Url
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard